import requests from '@/utils/request';
// 查询
export const reqGetCompanyList = (params) =>
  requests.post('/admin/company/query', params);
// // 获取院系专业树
// export const reqQueryDepAndMaJorAndClassroom = () =>
//   requests.get('/admin/company/queryDepAndMaJorAndClassroom');
// 企业新增
export const reqBatchAddCompany = (params) =>
  requests.post('/admin/company/add', params);
// 企业编辑
export const reqEditCompany = (params) =>
  requests.put('/admin/company/edit', params);
// 企业删除--批量
export const reqBatchDelCompany = (params) =>
  requests.post('/admin/company/remove', params);
// 检查企业编号是否重复
export const reqCheckCompanyCodeIsRepeat = (params) =>
  requests.get(`/admin/company/queryForCheckRepeatName/${params}`);

// 查询企业名称、编号、编码
export const reqQueryForNameAndIdAndCode = () =>
  requests.get(`/admin/company/queryForNameAndIdAndCode`);

// 根据ID查询企业信息
export const reqQueryCompanyInfoByID = (params) =>
  requests.get(`/admin/company/queryCompanyInfoByID/${params}`);
